<template>
  <div class="p-4 flex gap-2">
    <AButton type="primary" @click="setWatermark('水印')">设置水印</AButton>
    <AButton type="primary" @click="clear">清除水印</AButton>
  </div>
</template>

<script lang="ts" setup>
import { useWatermark } from '@zm-pkg/core'
import { useForm } from '@zm-pkg/ui'

const { setWatermark, clear } = useWatermark()

onUnmounted(() => {
  clear()
})

const [] = useForm({
  schemas: [
    { component:'Input', label: '测试', name: 'test', props: {
        disabled: true
      } }
  ]
})
</script>